<?php

/*
 * site/init.php
 *
 */

/* ******************************************************** */
/*                  MUST BE CALLED                          */
/* check if executing _the_ standart init process           */
/* ******************************************************** */
global $_initProcess;
if( !isset($_initProcess) || $_initProcess != true ) die();

/*
 * siteInitialize()
 * called to initialize the site
 */
function siteInitialize()
{
	print( "----------------------------------------<br>\n" );
	print( "SITE INITIALIZATION: <br>\n" );
}

/*

$svcmth = array();
$svcmth['HomeService'] = array();
$svcmth['HomeService']['getText'] = true;
$svcmth['LabelService'] = array();
$svcmth['LabelService']['getList'] = true;
$svcmth['LinkService'] = array();
$svcmth['LinkService']['getList'] = true;
$svcmth['LinkService']['getUnlabelledList'] = true;

$anonymous = Conf::$c['special']['username']['anonymous'];

foreach( $svcmth as $service => $methods )
{
	foreach( $methods as $method => $fake )
	{
		if( !CoreDBFct::isCallAllowedByName( $anonymous, $service, $method ) )
		{
			print( "Allowing '$anonymous' to execute $service::$method() <br>\n" );
			if( !CoreDBFct::insertCallPermissionByName( $anonymous, $service, $method ) )
				error();
		}
	}
}

*/

?>
